package com.elong.qadev.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 
 * @ClassName: TaskInfo
 * @Description: TODO(用于存储TASK配置信息)
 * @author kangchen
 * @date 2015年9月28日
 *
 */
@Entity
@Table(name = "TASKINFO", schema = "ti")
public class TaskInfo {
	
	public TaskInfo(int id, String taskName, String timeConfig,
			String contains, String mailTo, String description,
			String lastBatchNumber, String reportPath, String configer,
			Date createDate) {
		super();
		this.id = id;
		this.taskName = taskName;
		this.timeConfig = timeConfig;
		this.contains = contains;
		this.mailTo = mailTo;
		this.description = description;
		this.lastBatchNumber = lastBatchNumber;
		this.reportPath = reportPath;
		this.configer = configer;
		this.createDate = createDate;
	}

	private int id;
	private String taskName;
	private String timeConfig;
	private String contains;
	private String mailTo;
	private String description;
	private String lastBatchNumber;
	private String reportPath;
	@Column(name = "LASTBATCHNUMBER", nullable = true, length = 50)
	public String getLastBatchNumber() {
		return lastBatchNumber;
	}

	public void setLastBatchNumber(String lastBatchNumber) {
		this.lastBatchNumber = lastBatchNumber;
	}
	@Column(name = "REPORTPATH", nullable = true, length = 150)
	public String getReportPath() {
		return reportPath;
	}

	public void setReportPath(String reportPath) {
		this.reportPath = reportPath;
	}

	private String configer;
	private Date createDate;

	

	@Override
	public String toString() {
		return "TaskInfo [id=" + id + ", taskName=" + taskName
				+ ", timeConfig=" + timeConfig + ", contains=" + contains
				+ ", mailTo=" + mailTo + ", description=" + description
				+ ", lastBatchNumber=" + lastBatchNumber + ", reportPath="
				+ reportPath + ", configer=" + configer + ", createDate="
				+ createDate + "]";
	}

	public TaskInfo() {
		super();
		// TODO Auto-generated constructor stub
	}

	@Column(name = "MAILTO", nullable = true, length = 500)
	public String getMailTo() {
		return mailTo;
	}

	public void setMailTo(String mailTo) {
		this.mailTo = mailTo;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "ID", unique = true, nullable = false, length = 10)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Column(name = "TASKNAME", nullable = true, length = 100)
	public String getTaskName() {
		return taskName;
	}

	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}

	@Column(name = "TIMECONFIG", nullable = true, length = 30)
	public String getTimeConfig() {
		return timeConfig;
	}

	public void setTimeConfig(String timeConfig) {
		this.timeConfig = timeConfig;
	}

	@Column(name = "CONTAINS", nullable = true, length = 500)
	public String getContains() {
		return contains;
	}

	public void setContains(String contains) {
		this.contains = contains;
	}

	@Column(name = "DESCRIPTION", nullable = true, length = 150)
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "CONFIGER", nullable = true, length = 20)
	public String getConfiger() {
		return configer;
	}

	public void setConfiger(String configer) {
		this.configer = configer;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATEDATE", length = 7)
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

}
